package com.linrung.gdsfrz.electronicseal;

/**
 * 电子印章API
 * API文档版本：v1.1.8 (广东省统一电子印章平台接入指引（政府部门）v1.1.8.doc)
 * @author wurenlong
 */
public class GDSElectronicSealAPI {

    /**
     * 印章厂家
     */
    private static final String GUO_MAI_XIN_AN = "/ebus/guomaixinan/";

    /**
     * <h1>获取查询印章信息（组织机构标识）</h1>
     * <p style="color:green">
     * 		接口描述: 根据组织机构标识获取印章信息	<br/>
     * 		调用方式: （post）from-data	<br/>
     * 		参数：deptId String  <span style="color:red;">Y[必传]</span>  部门id
     * </p>
     */
    public static final String SEAL_GETSEALSBYDEPTID = GUO_MAI_XIN_AN + "seal/getSealsByDeptId";

    /**
     * <h1>初始化sdk</h1>
     * <p style="color:green">
     * 		用于HashSignOperator的初始化<br/>
     * 		参数：url String  <span style="color:red;">Y[必传]</span>  服务端IP URL
     * </p>
     */
    public static final String CORE_SDK = GUO_MAI_XIN_AN + "core/sdk";


    public static final String QUERY_SEALDATA = GUO_MAI_XIN_AN + "core/query/sealdata";

    public static final String QUERY_SIGNALUE = GUO_MAI_XIN_AN + "core/query/signvalue";

    public static final String VERIFY_SIGNVALUE = GUO_MAI_XIN_AN + "core/verify/signvalue";

    public static final String CORE_DYNAMICSIGN = GUO_MAI_XIN_AN + "core/dynamicSign";

    public static final String SM2_SIGN = GUO_MAI_XIN_AN + "sm2/sign ";

    public static final String SM2_HASHANDSIGN = GUO_MAI_XIN_AN + "sm2/hashAndSign";

    public static final String SM2_VERIFYSIGN = GUO_MAI_XIN_AN + "sm2/verifySign";

    /**
     * <h1>文件上传(云)</h1>
     * <p style="color:green">
     * 		接口功能说明：此接口用于上传待签章的文件<br/>
     * 		<span style="color:red;">PS:没盖章保存1天，盖章后保存2小时，下载会马上删除</span><br/>
     * 		请求方式：multipart/form-data（POST）<br/>
     * 		参数：file 请求文件流  <span style="color:red;">Y[必传]</span>  PDF文件格式
     * 		返回：<br/>
     * 			{<br/>
     * 				"uploadFileId":"" //待处理文件编号	<br/>
     * 				"errcode":"ok"	<br/>
     * 				"errmsg":"0"	<br/>
     * 			}
     * </p>
     */
    public static final String GDATA_FILE_UPLOAD = GUO_MAI_XIN_AN + "api/gdata/file/upload";

    public static final String GDATA_PDF_DOWNLOAD = GUO_MAI_XIN_AN + "api/gdata/pdf/download";

    public static final String GDATA_PDF_SINGLEBYMOREFILEUUID = GUO_MAI_XIN_AN + "api/gdata/pdf/singleByMoreFileUUID";

    public static final String GDATA_PDF_VERIFY = GUO_MAI_XIN_AN + "api/gdata/pdf/verify";

    /**
     * <h1>获取印章信息（用户标识）</h1>
     * <p style="color:green">
     * 		根据用户唯一标识获取印章信息<br/>
     * 		请求方式：POST<br/>
     * 		请求参数以及示例（headers里的 x-tif-uuid是用户唯一标识）<br/>
     * 		返回：JSON <br/>
     * </p>
     */
    public static final String GDATA_SEAL_PERSON_GETIMAGEBYUUID = GUO_MAI_XIN_AN + "api/gdata/seal/person/getImageByUUID";

    /**
     * <h1>文件下载</h1>
     * <p style="color:green">
     * 		接口功能说明：签章完成的文件下载接口<br/>
     * 		请求方式：GET<br/>
     * 		参数：siteId String  <span style="color:red;">Y[必传]</span>  10000 <br/>
     * 			documentPath String  <span style="color:red;">Y[必传]</span>  云文件唯一编号 <br/>
     * 		返回：成功返回文件流(PDF格式)	<br/>
     * 		错误返回json: <br/>
     * 					{<br/>
     * 						"requestId":"",	<br/>
     * 						"success":false,	<br/>
     * 						"message":null,	<br/>
     * 						"errorCode":"",	<br/>
     * 						"errorMsg":"文件不存在",	<br/>
     * 						"total":0,	<br/>
     * 						"data":[]	<br/>
     * 					}<br/>
     * </p>
     */
    public static final String USECHAPTER_MANAGER_DOWNFILE = GUO_MAI_XIN_AN + "useChapter/manager/downFile";

    public static final String TESTSEAL_CORE_CLIENT = GUO_MAI_XIN_AN + "testSeal/core/client";

    public static final String USECHAPTER_CORE_OPENSEAMSIGN = GUO_MAI_XIN_AN + "useChapter/core/openSeamSign";

    public static final String USECHAPTER_CORE_FINDSEALBYDEPTIDANDSEALMSG = GUO_MAI_XIN_AN + "useChapter/core/findSealByDeptIdAndSealMsg";
}
